uniform float4x4 StateComplete;
sampler2D tex0;
sampler2D tex1;
float alpha = 1.0f;

void vsMain(
			in float4 pos: POSITION, 
			out float4 opos: POSITION, 
			in float2 tc: TEXCOORD, 
			out float2 otc: TEXCOORD)
{
	opos = mul(StateComplete, pos);
	otc = tc;
}

float4 psMain(in float2 t: TEXCOORD, out float d: DEPTH): COLOR
{
	d = tex2D(tex1, t);
	return tex2D(tex0, t) * float4(1,1,1,alpha);
}